/**************************************************************************
Copyright (C) jianbo miao Corporation.  All Rights Released.
this is a 3d engin named our_3d_engin.
our_3d_engin feature:
1:there is no float.
2:it do the 3d things all by softwear.
3:base on 1 and 2 , it can execution on arm which have no 3d hardwear accelerate.

  if you have any  suggestion or question,pls contact with me
  mail:miaojb@126.com
  msn:miaojianbo@hotmail.com
  qq:30209027
  
    2008/01/01
***************************************************************************/


#ifndef OUR_DRAW32
#define OUR_DRAW32

#include "our_cpu.h"
#include "our_math.h"
#include "our_3d.h"



#define UV_BUILD(u,v) ((u<<16)+v)
//================================================================================================
//================================================================================================
int OUR_Clip_Line(int *x11,int *y11,int *x21, int *y21);
int OUR_Draw_Line32(int x0, int y0, // starting position 
                    int x1, int y1, // ending position
                    int color,     // color index
                    UCHAR *vb_start, int lpitch); // video buffer and memory pitch

//int OUR_Clip_Line(int &x1,int &y1,int &x2, int &y2);
int OUR_Draw_Clip_Line32(int x0,int y0, int x1, int y1, int color, 
                         UCHAR *dest_buffer, int lpitch);

void OUR_Draw_char32(CLR clor,char c,UINT *dis, int lpitch);
void OUR_Draw_Text32(int x,int y,CLR clor,char *s,UCHAR *dis, int lpitch);
void OUR_Draw_BigText32(int x,int y,CLR clor,char *s,UCHAR *dis, int lpitch);

void OUR_Draw_OBJ( OUR_3D_OBJ_PTR	obj,UCHAR *video_buffer, int lpitch,int clor_mod);

//================================================================================================
#endif
